<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>退票申请</title>
    <include file="Template/head"/>
<body>
<div class="actNav">
    <div class="doRefresh">退票申请</div>
    <a href="javascript:history.go(-1);" class="back"></a>
    <a href="{:U('Index/index')}" class="home"></a>
</div>
<div class="wapper" style="margin: 10px;">
    <form method="post" action="{:U('Flight/refundApplication')}" class="form-horizontal" role="form">
        <input type="hidden" id="refundApplication" value="{:U('Flight/refundApplication')}">
        <input type='hidden' class='segment' value="{$dep_code}-{$arr_code}">

        <div class="form-group">
            <label class="col-sm-2 control-label">姓名：</label>

            <div class="col-sm-10">
                <input type="text" class="form-control passengerName" placeholder=""
                       value="{$flightInfo.passenger_name}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">票号：</label>

            <div class="col-sm-10">
                <input type="text" class="form-control ticketNo" placeholder=""
                       value="{$flightInfo.ticket_no}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">航段：</label>

            <div class="col-sm-10">
                <input type="text" class="form-control ticketNo" placeholder=""
                       value="{$flightInfo.dep_code|nameToAirport} - {$flightInfo.arr_code|nameToAirport}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">订单号：</label>

            <div class="col-sm-10">
                <input type="text" class="form-control orderNo" placeholder=""
                       value="{$flightInfo.sequence_no}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">退票类型：</label>

            <div class="col-sm-10">
                <select class="form-control refundType">
                    <option value="0">--请按实际情况选择退票类型--</option>
                    <option value="1">【当日作废】：当日作废，收取10元手续费</option>
                    <option value="2">【当日作废】： 其他废票情况</option>
                    <option value="3">【自愿退票】：客人自愿退票，按客规收取手续费</option>
                    <option value="5">【非自愿退票】：航班延误、取消，申请全退</option>
                    <option value="8">【非自愿退票】：客人因病无法乘机，申请全退，病退证明已邮寄</option>
                    <option value="9">【非自愿退票】： 特殊退票情况</option>
                    <option value="6">【升舱换开】：升舱换开，申请自愿退票</option>
                    <option value="7">【升舱换开】：名字错换开重出，申请全退（填写新票号）</option>
                    <option value="10">申请退回票款差价【申退差价】</option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <if condition="$flightInfo['state'] eq 3">
                    <button type="button" class="btn btn-warning pull-right doRefundFlightApplication">确定</button>
                    <else/>
                    <div class="text-right" style="color: #f08519">退票中,待退款</div>
                </if>
            </div>
        </div>
    </form>


    <div class="modal fade popWin bs-example-modal-sm" id="myModalmob" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title text-center" id="myModalLabel">温馨提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="suc"></i></p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning" data-dismiss="modal" aria-label="Close">确认</button>
                </div>
            </div>
        </div>
    </div>

    <footer class="footer">
        <include file="Template/foot"/>
    </footer>
</div>

</body>
</html>
